<?php
	require_once(ROOTDIR.'source/service/MysqlHandler.class.php');
	
	class Main
	{
		private static $mysql;
		
		public static function getMysqlInstance()
		{
			if(empty(self::$mysql))
			{
				global $dsn_user;
				
				self::$mysql = new MysqlHandler($dsn_user);
			}      
			else
			{
			}
		    return self::$mysql;
		}
		
		public static function setMySQLParam($parm)
		{
			foreach ($parm as $key => $value)
			{
				$list[] = "`".$key."`='".self::getMysqlInstance()->strescape($value)."'";
			}
			return $list;
		}
		
		
	}